import axios from '@/services/http'
import chatAxios from '@/services/http.chat'

// 建立好友关系
export const becomeFriend = params => { return axios.post('buildFriRelation', params) }

// 获取聊天联系人
export const getContacts = params => { return axios.post('getLinkman', params) }

// 消息设置为已读
export const setChatMessageReads = params => { return chatAxios.post('chat/setReads', params) }

// 获取未读消息
export const getNoReadMessages = params => { return chatAxios.post('chat/getNoReadMessages', params) }

// 获取已读消息
export const getReadMessages = params => { return chatAxios.post('chat/getReadMessages', params) }

// 获取未读数
export const getNoReadNums = params => { return chatAxios.post('chat/getNoReadNums', params) }

// 添加系统消息
export const addSystemMessage = params => { return chatAxios.post('system/addMessage', params) }

// 获取系统消息
export const getSystemMessages = params => { return chatAxios.post('system/getMessages', params) }

// 设置系统消息已读
export const setSystemMessageRead = params => { return chatAxios.post('system/setRead', params) }
